


const url = require('url');
const ullstr = ''

var obj = url.parse(ulrstr);
console.log(obj);
console.log(onj.query);


obj = url.parse(urlstr, true);
console.log(obj);
console.log(onj.query);


var str = url.format(obj);
console.log(str);